package net.wzw.constant;

/**
 * @author wzw
 * @date 2025/5/1
 * @Description redis key 常量
 */
public class RedisKeyConstant {

    /**
     * 粉丝列表 user_follower:当前博主id:粉丝id list
     */
    public static final String USER_FOLLOWER_PREFIX = "user_follower:";

    /**
     * 查询粉丝用户是否关注过 user_follower_info:当前博主id:粉丝id
     */
    public static final String USER_FOLLOWER_INFO_PREFIX = "user_follower_info:";


    /**
     * 查询粉丝用户是否关注过分布式锁
     */
    public static final String USER_FOLLOWER_INFO_LOCK = "user_follower_info_lock";

    /**
     * 关注列表 user_attention:当前博主id:其他id list
     */
    public static final String USER_ATTENTION_PREFIX = "user_attention:";

    /**
     * 用户信息
     */
    public static final String USER_INFO_PREFIX = "user_info:";

    /**
     * 美食计数服务 key
     * 比如点赞计数：food_counter_123:like_count
     * 比如评论计数：food_counter_123:comment_count
     * 比如收藏计数：food_counter_123:collect_count
     */
    public static final String FOOD_COUNTER_KEY_PREFIX = "food_counter_";

    /**
     * 美食计数服务 key
     * 比如关注计数：user_counter_123:attention_count
     * 比如粉丝计数：user_counter_123:follower_count
     * 比如点赞计数：user_counter_123:like_count
     * 比如收藏计数：user_counter_123:collect_count
     */
    public static final String USER_COUNTER_KEY_PREFIX = "user_counter_";

}
